We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc3537c commit 57519e6Copy full SHA for 57519e6
CMakeLists.txt
@@ -34,6 +34,14 @@ target_include_directories(
34
$<INSTALL_INTERFACE:include>)
35
36
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
37
+
38
+ # Run configure to generate config-host.h, if configure hasn't been run
39
+ if(NOT EXISTS "${PROJECT_SOURCE_DIR}/config-host.h")
40
+ execute_process(
41
+ COMMAND "${PROJECT_SOURCE_DIR}/configure"
42
+ WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}")
43
+ endif()
44
45
include(CTest)
46
47
# Tests need to be linked against pthreads
0 commit comments