Skip to content

Commit 4f0f402

Browse files
committed
Fix last commit not generating SpecUtils_config.h
1 parent 4e70828 commit 4f0f402

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: CMakeLists.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ endif( SpecUtils_BUILD_FUZZING_TESTS )
440440

441441
set_property( TARGET SpecUtils PROPERTY POSITION_INDEPENDENT_CODE ON )
442442

443+
set( SpecUtils_config_OUT ${CMAKE_CURRENT_BINARY_DIR}/SpecUtils_config.h )
444+
configure_file(
445+
${CMAKE_CURRENT_SOURCE_DIR}/SpecUtils/SpecUtils_config.h.in
446+
${SpecUtils_config_OUT}
447+
)
448+
LIST(APPEND headers ${SpecUtils_config_OUT})
443449

444450
get_directory_property(hasParent PARENT_DIRECTORY)
445451
if( NOT hasParent )
@@ -456,12 +462,6 @@ if( NOT hasParent )
456462
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
457463
)
458464

459-
set( SpecUtils_config_OUT ${CMAKE_CURRENT_BINARY_DIR}/SpecUtils_config.h )
460-
configure_file(
461-
${CMAKE_CURRENT_SOURCE_DIR}/SpecUtils/SpecUtils_config.h.in
462-
${SpecUtils_config_OUT}
463-
)
464-
LIST(APPEND headers ${SpecUtils_config_OUT})
465465
# Install the headers
466466
install(FILES ${headers} ${CMAKE_BINARY_DIR}/SpecUtilsExport.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SpecUtils)
467467

@@ -515,4 +515,4 @@ if( NOT hasParent )
515515
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}-${COMPILER_VERSION_SHORT}-${SpecUtils_PACKAGE_POSTFIX}")
516516
set(CPACK_GENERATOR "ZIP")
517517
include(CPack)
518-
endif( NOT hasParent )
518+
endif( NOT hasParent )

0 commit comments

Comments
 (0)