cmlib/CMLibGeneratePrivateConfigHPP.cmake

15 lines
527 B
CMake
Raw Normal View History

2021-05-30 20:07:16 +00:00
function(cmlib_generate_private_config_hpp)
include(CMLibLargeFiles)
cmlib_test_large_files(HAVE_LARGEFILES)
2021-06-12 09:59:31 +00:00
set(output_file ${CMAKE_BINARY_DIR}/include/cmlib_private_config.hpp)
if(CMLIB_GENERATED_HEADERS_PATH)
2021-06-12 09:59:31 +00:00
set(output_file ${CMLIB_GENERATED_HEADERS_PATH}/cmlib_private_config.hpp)
elseif(ARGV0)
2021-06-12 09:59:31 +00:00
set(output_file ${ARGV0})
endif()
get_property(PROJECT_VERSION_INT GLOBAL PROPERTY PROJECT_VERSION_INT)
2021-06-12 09:59:31 +00:00
configure_file(${CMLIB_MODULE_DIR}/hpp/cmlib_private_config.hpp.in ${output_file})
2019-02-12 16:31:17 +00:00
endfunction()