Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
59be3426
Commit
59be3426
authored
Sep 02, 2009
by
Christopher Bruns
Browse files
Now cmake 2.4.6 will not barf on CMakeLists.txt
parent
c0183d1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
CMakeLists.txt
CMakeLists.txt
+11
-15
No files found.
CMakeLists.txt
View file @
59be3426
...
@@ -21,22 +21,18 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
...
@@ -21,22 +21,18 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# might actually make cmake LESS brittle?
# might actually make cmake LESS brittle?
# (Probably the same genius who came up the endif(allthesamecrap) syntax)
# (Probably the same genius who came up the endif(allthesamecrap) syntax)
# Older cmake versions do not have cmake_policy command
# Older cmake versions do not have cmake_policy command
# Cmake 2.4.5, the default cmake on red hat linux, has the
# cmake_policy command, but it does not work
# "if(POLICY ..." does not work with cmake 2.4.[56] on red hat
# (cmake 2.4.7 is OK)
if
(
COMMAND cmake_policy
)
if
(
COMMAND cmake_policy
)
# Cmake 2.4.5, the default cmake on red hat linux, has the
if
(
CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 5
)
# cmake_policy command, but it does not work
if
(
${
CMAKE_MAJOR_VERSION
}
EQUAL 2 AND
${
CMAKE_MINOR_VERSION
}
EQUAL 4}
)
# do nothing
else
(
${
CMAKE_MAJOR_VERSION
}
EQUAL 2 AND
${
CMAKE_MINOR_VERSION
}
EQUAL 4}
)
if
(
POLICY CMP0003
)
cmake_policy
(
SET CMP0003 NEW
)
cmake_policy
(
SET CMP0003 NEW
)
endif
(
POLICY CMP0003
)
if
(
POLICY CMP0005
)
cmake_policy
(
SET CMP0005 NEW
)
cmake_policy
(
SET CMP0005 NEW
)
endif
(
POLICY CMP000
5
)
endif
(
CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER
5
)
if
(
POLICY CMP0011
)
if
(
CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 6 OR CMAKE_PATCH_VERSION GREATER 2
)
cmake_policy
(
SET CMP0011 NEW
)
cmake_policy
(
SET CMP0011 NEW
)
endif
(
POLICY CMP0011
)
endif
(
CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 6 OR CMAKE_PATCH_VERSION GREATER 2
)
endif
(
${
CMAKE_MAJOR_VERSION
}
EQUAL 2 AND
${
CMAKE_MINOR_VERSION
}
EQUAL 4}
)
endif
(
COMMAND cmake_policy
)
endif
(
COMMAND cmake_policy
)
# Don't create a new project name if this is part of a mega-build from the
# Don't create a new project name if this is part of a mega-build from the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment