From 75ff490f76a48c542d2916512d756122eaa23c39 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 4 Mar 2011 20:50:26 +0000 Subject: [PATCH] Don't install libxrme at all, but do copy the headers into cmake's binary dir on mac to fix the build --- 3rdparty/libxrme/CMakeLists.txt | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/3rdparty/libxrme/CMakeLists.txt b/3rdparty/libxrme/CMakeLists.txt index 99cca2a80..8edef76b9 100644 --- a/3rdparty/libxrme/CMakeLists.txt +++ b/3rdparty/libxrme/CMakeLists.txt @@ -32,22 +32,8 @@ target_link_libraries(xrme include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) -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/ - ) - - # 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) +# 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)