Skip to content
Permalink
Browse files

Fixed CMake warning on windows for cmake policy CMP0020.

  • Loading branch information...
matevz committed Aug 22, 2015
1 parent fa2831c commit c189068b9c2d3bc1a723d36b92b772a6c87b2cad
Showing with 4 additions and 1 deletion.
  1. +2 −1 CMakeLists.txt
  2. +2 −0 CMakeListsQt4.txt
@@ -38,13 +38,14 @@ STRING(REGEX REPLACE "\n" "" CANORUS_VERSION "${CANORUS_VERSION}") # get rid of
# Under M$ Windows this is C:\Program files\Canorus
# On Mac OS X it is /Applications for the .app and /Library/Fonts for the fonts, but see note below
IF(MINGW)
cmake_policy(SET CMP0020 NEW)

IF (NOT CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "C:/Program files/Canorus")
ENDIF (NOT CMAKE_INSTALL_PREFIX)
SET(CANORUS_INSTALL_DATA_DIR "")
SET(CANORUS_INSTALL_BIN_DIR "")
SET(CANORUS_INSTALL_LIB_DIR "")

ELSE(MINGW)
IF(APPLE)
# This is where OSX-specific resources and scripts live.
@@ -38,6 +38,8 @@ STRING(REGEX REPLACE "\n" "" CANORUS_VERSION "${CANORUS_VERSION}") # get rid of
# Under M$ Windows this is C:\Program files\Canorus
# On Mac OS X it is /Applications for the .app and /Library/Fonts for the fonts, but see note below
IF(MINGW)
cmake_policy(SET CMP0020 NEW)

IF (NOT CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "C:/Program files/Canorus")
ENDIF (NOT CMAKE_INSTALL_PREFIX)

0 comments on commit c189068

Please sign in to comment.
You can’t perform that action at this time.