Skip to content

Commit 365a008

Browse files
authored
Fix source distribution config.h in superbuild (#296)
1 parent 72d1c3c commit 365a008

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@ include(nlohmann_json)
174174
# Get git info, etc
175175
include (logging)
176176

177-
# Write config file
178-
if(LOGGING_INFO_QUERIED)
179-
configure_file(${CMAKE_SOURCE_DIR}/include/config.h.in ${CMAKE_SOURCE_DIR}/config.h)
180-
endif()
181-
182177
# -----------------------------------------------------------------------------
183178
# Interface libraries
184179
# -----------------------------------------------------------------------------

src/cmake/Superbuild.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
include(ExternalProject)
2929

30+
include(logging)
31+
3032
############################################################
3133
# Common variables
3234
############################################################

src/cmake/logging.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ execute_process(
5959

6060
get_filename_component(IVF_HACK_CXX_COMPILER ${CMAKE_CXX_COMPILER} NAME)
6161

62+
configure_file(${CMAKE_SOURCE_DIR}/include/config.h.in ${CMAKE_SOURCE_DIR}/config.h)
63+
message(STATUS "Config file \"config.h\" generated in ${CMAKE_SOURCE_DIR}")
64+
6265
set(LOGGING_INFO_QUERIED True)
6366

6467
elseif(NOT EXISTS ${CMAKE_SOURCE_DIR}/config.h)

0 commit comments

Comments
 (0)