Re: [CMake] CTEST_CONFIGURATION_TYPE not set in 'make test'

2012-10-03 Thread Petr Kmoch
Thanks for the tip. I'll see how I can adapt this to my scenario. Petr On Tue, Oct 2, 2012 at 12:49 PM, David Cole david.c...@kitware.com wrote: CMake has code like this using the TEST_INCLUDE_FILE directory property to deal with this situation: # In the main CMakeLists.txt: # Set up

Re: [CMake] CTEST_CONFIGURATION_TYPE not set in 'make test'

2012-10-02 Thread Petr Kmoch
Anyone? Any suggestions would be appreciated. Petr On Mon, Sep 24, 2012 at 5:16 PM, Petr Kmoch petr.km...@gmail.com wrote: Hi all, I seem to have a problem when using add_test(... CONFIGURATIONS ...) and running 'make test' on Linux. It's skipping the test. The CMakeLists.txt contains:

Re: [CMake] CTEST_CONFIGURATION_TYPE not set in 'make test'

2012-10-02 Thread David Cole
CMake has code like this using the TEST_INCLUDE_FILE directory property to deal with this situation: # In the main CMakeLists.txt: # Set up test-time configuration. set_directory_properties(PROPERTIES TEST_INCLUDE_FILE ${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake) # In Tests/CMakeLists.txt:

[CMake] CTEST_CONFIGURATION_TYPE not set in 'make test'

2012-09-24 Thread Petr Kmoch
Hi all, I seem to have a problem when using add_test(... CONFIGURATIONS ...) and running 'make test' on Linux. It's skipping the test. The CMakeLists.txt contains: #... enable_testing() add_test(NAME test1 CONFIGURATIONS db COMMAND ...) #... On Windows, I invoke CMake like this: cmake