[CMake] Fix CMake 3.1 warning about new policy CMP0053.

CMake Warning (dev) at CMake/export.cmake:48 (set):
  Policy CMP0053 is not set: Simplify variable reference and escape sequence
  evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

Changed old-style @variable@ replacement to ${variable}. 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2014-11-24 09:35:04 +00:00
parent fd4784a340
commit f7b50362c4
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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}