From f07a65e4e3f174509fa0187d53df30ceabd9c29b Mon Sep 17 00:00:00 2001 From: Sam Spilsbury Date: Thu, 30 Aug 2012 20:51:46 +0800 Subject: Use target_link_libraries, link in pthread by default (bzr r2637.1.1) --- unity-shared/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unity-shared/CMakeLists.txt') diff --git a/unity-shared/CMakeLists.txt b/unity-shared/CMakeLists.txt index d1b06f000..c2c5b9562 100644 --- a/unity-shared/CMakeLists.txt +++ b/unity-shared/CMakeLists.txt @@ -18,8 +18,6 @@ add_definitions (${CFLAGS}) set (LIBS ${CACHED_UNITY_DEPS_LIBRARIES} ${UNITY_STANDALONE_LADD}) -link_libraries (${LIBS}) - set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) @@ -70,6 +68,7 @@ set (UNITY_SHARED_SOURCES ) add_library (unity-shared STATIC ${UNITY_SHARED_SOURCES}) +target_link_libraries (unity-shared ${LIBS}) add_dependencies (unity-shared unity-core-${UNITY_API_VERSION}) # @@ -81,6 +80,8 @@ set (UNITY_SHARED_COMPIZ_SOURCES PluginAdapterCompiz.cpp ) add_library (unity-shared-compiz STATIC ${UNITY_SHARED_COMPIZ_SOURCES}) +target_link_libraries (unity-shared-compiz ${LIBS}) + add_dependencies (unity-shared-compiz unity-shared) # standalone @@ -88,6 +89,7 @@ set (UNITY_SHARED_STANDALONE_SOURCES PluginAdapterStandalone.cpp ) add_library (unity-shared-standalone STATIC ${UNITY_SHARED_STANDALONE_SOURCES}) +target_link_libraries (unity-shared-standalone ${LIBS}) add_dependencies (unity-shared-standalone unity-shared) -- cgit v1.2.3