policy first

This commit is contained in:
Vitor Santos Costa 2016-08-05 16:36:26 -05:00
parent 384e74ae59
commit 833ffbb104
2 changed files with 3 additions and 5 deletions

View File

@ -7,11 +7,6 @@ include (python NO-POLICY-SCOPE)
include (java NO-POLICY-SCOPE)
if (POLICY CMP0042
)
cmake_policy( SET CMP0042 NEW)
#cmake_policy( NO_POLICY_SCOPE )
endif()
if (NOT WIN32)
set (BUILD_SHARED_LIBS ON)

View File

@ -3,6 +3,9 @@
include (MacroLogFeature)
if (POLICY CMP0042)
cmake_policy( SET CMP0042 NEW)
endif()
if (ANDROID)
macro ( MY_add_custom_target)