Skip to content

Commit 3d38d1e

Browse files
committedNov 3, 2014
put linker -lm globally
1 parent 8e410d6 commit 3d38d1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
55
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
66
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
77

8+
if(UNIX)
9+
link_libraries(m)
10+
endif(UNIX)
11+
812
ADD_SUBDIRECTORY(src)
913
ADD_SUBDIRECTORY(examples)
1014

‎examples/CMakeLists.txt

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if(UNIX)
2-
link_libraries(m)
3-
endif(UNIX)
4-
51
ADD_SUBDIRECTORY(3ds2obj)
62
ADD_SUBDIRECTORY(3dsdump)
73
ADD_SUBDIRECTORY(cube)

0 commit comments

Comments
 (0)
Please sign in to comment.