Write config files after all directories were traversed.

This commit is contained in:
Klaas Freitag 2013-01-09 15:04:17 +01:00
parent ba21a9b3a2
commit 3d4ba6c29b

View file

@ -46,10 +46,9 @@ if (CMOCKA_FOUND AND UNIT_TESTING)
endif (CMOCKA_FOUND AND UNIT_TESTING) endif (CMOCKA_FOUND AND UNIT_TESTING)
include(ConfigureChecks.cmake) include(ConfigureChecks.cmake)
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
set(SOURCE_DIR ${CMAKE_SOURCE_DIR}) set(SOURCE_DIR ${CMAKE_SOURCE_DIR})
configure_file(config_test.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_test.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
@ -69,3 +68,7 @@ if (CMOCKA_FOUND AND UNIT_TESTING)
add_subdirectory(tests) add_subdirectory(tests)
endif (CMOCKA_FOUND AND UNIT_TESTING) endif (CMOCKA_FOUND AND UNIT_TESTING)
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(config_test.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_test.h)