Re: [CMake] find_library doesn't find .dll on windows

2018-06-12 Thread Bo Zhou
Hi, This is a feature/problem on Windows, the library used for dynamic linking is not the runtime module as Linux or OSX but the .lib, a collection of symbols. I suggest you could still use find_library() to locate the .lib file for linking, then use find_file() to collect the runtime file then i

[CMake] CMakeLists.txt in different place than source

2018-06-12 Thread Andrew White
I have a situation where I want my CMakeLists.txt in a different place than my source. e.g.: /some/path/project/CMakeLists.txt /other/path/source/src/a.c /other/path/source/include/a.h Is there an easy way to say "process this CMakeLists.txt as if it were in /other/path/source" (at least as f

[CMake] Is there a way to customize the generate step trigger?

2018-06-12 Thread Ulrich Hierl
Hi folks, my cmake code reads version tags from the underlying git repository, derives a new version with the help of the existing tags and then sets that new version to the project() call. However, the cmake generate step is not triggered when the version tags in the repository change, so the