Use a relative path for configure_file

This commit is contained in:
Eric Lavesson 2014-12-25 15:13:33 +01:00
parent 46406e25c7
commit 77fd0e4b6a

View File

@ -5,7 +5,7 @@ if(CAUDIO_STATIC)
endif()
# generate cAudioBuildSettings.h
configure_file(${CMAKE_SOURCE_DIR}/CMake/Templates/cAudioBuildSettings.h.in ${CMAKE_BINARY_DIR}/include/cAudioBuildSettings.h @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../CMake/Templates/cAudioBuildSettings.h.in ${CMAKE_BINARY_DIR}/include/cAudioBuildSettings.h @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/include/cAudioBuildSettings.h DESTINATION include/cAudio)
INSTALL(DIRECTORY include/ DESTINATION include/cAudio FILES_MATCHING PATTERN "*.h")