The CMake configuration crashes with CMake version 2.8.9 and MSVC 2008
with error message:
CMake Error at CMakeLists.txt:1657 (check_cxx_source_compiles):
Unknown CMake command "check_cxx_source_compiles".
Moving add_subdirectory(src/other) to some line before 1657 removes the error.
Fixed in r58052. It was basically "a #include problem" where some build logic down in src/other was including a module needed by the top-level CMakeLists.txt file. The add_subdirectory() call is basically a #include too, which is why it worked if you moved it earlier. We were just getting lucky before.
The fix was simply to include the modules it needs before using those macros in the top-level CMakeLists.txt file. Just like with any other sources, each file should explicitly include the resources that file directly uses so that it can be modularly moved around later without causing problems.
Cheers!
Sean
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
