From d357a1cb6ecfe67b489862d97597a2587b196322 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 4 Mar 2011 11:54:08 +0000 Subject: [PATCH] Disable libxrme install targets on Mac. --- 3rdparty/libxrme/CMakeLists.txt | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/3rdparty/libxrme/CMakeLists.txt b/3rdparty/libxrme/CMakeLists.txt index 30c1bf942..99cca2a80 100644 --- a/3rdparty/libxrme/CMakeLists.txt +++ b/3rdparty/libxrme/CMakeLists.txt @@ -32,20 +32,22 @@ target_link_libraries(xrme include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) -# Install library -install(TARGETS xrme - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib -) +if(NOT APPLE) + # Install library + install(TARGETS xrme + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + ) -# Install public headers -install(FILES ${PUBLIC_HEADERS} - DESTINATION include/xrme/ -) + # Install public headers + install(FILES ${PUBLIC_HEADERS} + DESTINATION include/xrme/ + ) -# Also install public headers into the cmake binary dir so packages can use -# libxrme in their source tree by doing include_directories(${CMAKE_BINARY_DIR}) -foreach(header ${PUBLIC_HEADERS}) - configure_file(${header} ${CMAKE_BINARY_DIR}/xrme/${header} COPYONLY) -endforeach(header) + # Also install public headers into the cmake binary dir so packages can use + # libxrme in their source tree by doing include_directories(${CMAKE_BINARY_DIR}) + foreach(header ${PUBLIC_HEADERS}) + configure_file(${header} ${CMAKE_BINARY_DIR}/xrme/${header} COPYONLY) + endforeach(header) +endif(NOT APPLE)