You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate.
However, this not might not be applicable to Java since javac will handle that automatically.
The text was updated successfully, but these errors were encountered:
This issue was migrated from Pagure Issue #62. Originally filed by edewata (@edewata) on 2011-11-29 03:28:23:
Currently to compile Java in CMake the source codes have to be listed explicitly as follows:
Since there are many files this could be a maintenance issue. Ideally the list should be generated with a CMake function, for example:
There's a note in CMake docs (http://cmake.org/cmake/help/cmake-2-8-docs.html#command:file) that warns against it:
We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate.
However, this not might not be applicable to Java since javac will handle that automatically.
The text was updated successfully, but these errors were encountered: