[cmake-commits] hoffman committed CMakeLists.txt 1.2.2.1 1.2.2.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Nov 30 18:13:51 EST 2006
Update of /cvsroot/CMake/CMake/Tests/LibName
In directory public:/mounts/ram/cvs-serv5362/Tests/LibName
Modified Files:
Tag: CMake-2-4
CMakeLists.txt
Log Message:
ENH: move to RC 3 and add a fix for -L/path in link commands that was broken by the .dll.lib fix
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/LibName/CMakeLists.txt,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- CMakeLists.txt 30 Nov 2006 15:12:56 -0000 1.2.2.1
+++ CMakeLists.txt 30 Nov 2006 23:13:49 -0000 1.2.2.2
@@ -1,4 +1,6 @@
project(LibName)
+# this is a test to make sure that relative path
+# LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH work
set(LIBRARY_OUTPUT_PATH lib)
set(EXECUTABLE_OUTPUT_PATH lib)
add_library(bar SHARED bar.c)
@@ -6,3 +8,6 @@
target_link_libraries(foo bar)
add_executable(foobar foobar.c)
target_link_libraries(foobar foo)
+IF(UNIX)
+ target_link_libraries(foobar -L/usr/local/lib)
+ENDIF(UNIX)
More information about the Cmake-commits
mailing list