Skip to content
Snippets Groups Projects
Commit c600cd5b authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake][Release] Fix @rpath for CMake older then 2.8.12.

Setting a policy must be guarded as older CMake version do not
know about the policy.
parent 81266a5e
No related branches found
No related tags found
1 merge request!2512017-05 merge of upstream repository
......@@ -77,7 +77,10 @@
#
# Make CMake use rpath on OS X
cmake_policy(SET CMP0042 NEW)
if(POLICY CMP0042)
# this policy only needed for CMake older then 2.8.12
cmake_policy(SET CMP0042 NEW)
endif()
enable_language(C) # Enable C to skip CXX bindings for some tests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment