From 79a1c3331210ed4bbd753afe1ed6c43a41ad732e Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 27 Jan 2009 09:20:27 +0000 Subject: [PATCH] Fixed important bug in CREA_ADD_LIBRARY macro --- cmake/CREAMacro_AddLibrary.cmake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cmake/CREAMacro_AddLibrary.cmake b/cmake/CREAMacro_AddLibrary.cmake index 2aee01c..f4aea4d 100644 --- a/cmake/CREAMacro_AddLibrary.cmake +++ b/cmake/CREAMacro_AddLibrary.cmake @@ -1,5 +1,5 @@ # Creates and installs a library -# Uses CREA_DYNMAIC_LIBRARY_EXPORT and CREA_INSTALL_LIBRARY +# Uses CREA_DYNAMIC_LIBRARY_EXPORT and CREA_INSTALL_LIBRARY # hence the variables to be set for these are needed # Additionnaly one needs to set : # ${LIBRARY_NAME}_HEADERS : the list of headers to install @@ -34,11 +34,16 @@ MACRO(CREA_ADD_LIBRARY LIBRARY_NAME) FILES ${${LIBRARY_NAME}_HEADERS} DESTINATION ${${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS} ) - + +IF(WIN32) INSTALL( TARGETS ${LIBRARY_NAME} DESTINATION bin) - +ELSE(WIN32) + INSTALL( + TARGETS ${LIBRARY_NAME} + DESTINATION lib) +ENDIF(WIN32) ENDMACRO(CREA_ADD_LIBRARY) -- 2.45.0