Skip to content

Commit

Permalink
Force CMake to use old policy for now (thanks, Gary!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 28, 2010
1 parent 9e82e81 commit fea8d72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -65,6 +65,13 @@ INCLUDE(CheckCSourceCompiles)
INCLUDE(CheckCCompilerFlag)
INCLUDE(TestBigEndian)

# !!! FIXME: correct this to new policy and bump minimum cmake requirement.
IF(COMMAND CMAKE_POLICY)
# Use old policy when it comes to escaping macros,
# Specifically the one in quotes below.
CMAKE_POLICY(SET CMP0005 OLD)
ENDIF(COMMAND CMAKE_POLICY)

ADD_DEFINITIONS(-D__MOJOSETUP__=1)
ADD_DEFINITIONS(-DAPPID=mojosetup)
ADD_DEFINITIONS(-DAPPREV="${MOJOSETUP_VERSION}")
Expand Down

0 comments on commit fea8d72

Please sign in to comment.