You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2011/05/13 20:16:36 UTC

svn commit: r1102846 - /incubator/celix/trunk/framework/CMakeLists.txt

Author: abroekhuis
Date: Fri May 13 18:16:36 2011
New Revision: 1102846

URL: http://svn.apache.org/viewvc?rev=1102846&view=rev
Log:
Updated APR finding

Modified:
    incubator/celix/trunk/framework/CMakeLists.txt

Modified: incubator/celix/trunk/framework/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/celix/trunk/framework/CMakeLists.txt?rev=1102846&r1=1102845&r2=1102846&view=diff
==============================================================================
--- incubator/celix/trunk/framework/CMakeLists.txt (original)
+++ incubator/celix/trunk/framework/CMakeLists.txt Fri May 13 18:16:36 2011
@@ -20,18 +20,22 @@ include(FindZLIB)
 include(FindAPR)
 
 IF(ZLIB_FOUND)
-	MESSAGE(STATUS "Looking for Foo - found")
+	MESSAGE(STATUS "Looking for ZLIB - found")
 ELSE(ZLIB_FOUND)
-	MESSAGE(FATAL_ERROR "Looking for Foo - not found")
+	MESSAGE(FATAL_ERROR "Looking for ZLIB - not found")
 ENDIF(ZLIB_FOUND)
 
-
+IF(APR_FOUND)
+	MESSAGE(STATUS "Looking for APR - found")
+ELSE(APR_FOUND)
+	MESSAGE(FATAL_ERROR "Looking for APR - not found")
+ENDIF(APR_FOUND)
 
 add_definitions(-DUSE_FILE32API)
 aux_source_directory("private/src" SRC)
 include_directories("private/include")
 include_directories("${PROJECT_SOURCE_DIR}/utils/public/include")
 add_library(framework SHARED ${SRC})
-target_link_libraries(framework utils ${ZLIB_LIBRARY} apr-1 curl)
+target_link_libraries(framework utils ${ZLIB_LIBRARY} ${APR_LIBRARY} curl)
 
 install(TARGETS framework LIBRARY DESTINATION lib COMPONENT framework)