diff --git a/CMake/export.cmake b/CMake/export.cmake index af665f3e9..2e1d2640e 100644 --- a/CMake/export.cmake +++ b/CMake/export.cmake @@ -45,8 +45,8 @@ add_subdirectory(src) export(TARGETS ${FLUID} ${FLTK_LIBRARIES} FILE ${CMAKE_BINARY_DIR}/FLTK-Targets.cmake) # generate FLTKConfig.cmake for build directory use -set(INCLUDE_DIRS "@FLTK_INCLUDE_DIRS@") -set(CONFIG_PATH @FLTK_BINARY_DIR@) +set(INCLUDE_DIRS "${FLTK_INCLUDE_DIRS}") +set(CONFIG_PATH ${FLTK_BINARY_DIR}) configure_file( ${FLTK_SOURCE_DIR}/CMake/FLTKConfig.cmake.in diff --git a/CMake/install.cmake b/CMake/install.cmake index c585ebe2f..2e8f76c96 100644 --- a/CMake/install.cmake +++ b/CMake/install.cmake @@ -43,7 +43,7 @@ endif(OPTION_CREATE_LINKS) # generate FLTKConfig.cmake for installed directory use set(INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/include) -set(CONFIG_PATH ${CMAKE_INSTALL_PREFIX}/@FLTK_CONFIG_PATH@) +set(CONFIG_PATH ${CMAKE_INSTALL_PREFIX}/${FLTK_CONFIG_PATH}) install(EXPORT FLTK-Targets DESTINATION ${FLTK_CONFIG_PATH}