Commit 6fb082c2 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Disable cmake CMP0026 warnings on Mac


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@20110 4525493e-7705-40b1-a816-d608a930855b
parent 24629cd1
......@@ -28,6 +28,7 @@ macro(CORALModule)
install(TARGETS lcg_${package} DESTINATION lib)
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin") # See CORALCOOL-2819
cmake_policy(SET CMP0026 OLD) # Disable CMP0026 warning
set_target_properties(lcg_${package} PROPERTIES SUFFIX ".so") # DEFAULT!
get_property(lcg_${package}_loc TARGET lcg_${package} PROPERTY LOCATION)
get_filename_component(lcg_${package}_we ${lcg_${package}_loc} NAME_WE)
......
......@@ -28,6 +28,7 @@ macro(CORALSharedLib)
install(TARGETS lcg_${package} DESTINATION lib)
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin") # See CORALCOOL-2819 and -2887
cmake_policy(SET CMP0026 OLD) # Disable CMP0026 warning
set_target_properties(lcg_${package} PROPERTIES SUFFIX ".so") # DEFAULT!
get_property(lcg_${package}_loc TARGET lcg_${package} PROPERTY LOCATION)
get_filename_component(lcg_${package}_we ${lcg_${package}_loc} NAME_WE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment