projects
/
mussa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b698029
)
AMD64 needs -fPIC for mussa_core
author
Diane Trout
<diane@caltech.edu>
Wed, 12 Apr 2006 21:17:49 +0000
(21:17 +0000)
committer
Diane Trout
<diane@caltech.edu>
Wed, 12 Apr 2006 21:17:49 +0000
(21:17 +0000)
alg/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/alg/CMakeLists.txt
b/alg/CMakeLists.txt
index 9860d614e969e94db00eddfc5731134decb0055d..4ad67da51cf4c31fb11c165e5c946a579dc2bf02 100644
(file)
--- a/
alg/CMakeLists.txt
+++ b/
alg/CMakeLists.txt
@@
-16,5
+16,9
@@
FIND_PACKAGE(OpenGL)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(mussa_core ${OPEN_gl_LIBRARY})
+# these are really only needed for gcc on AMD64
+SET_SOURCE_FILES_PROPERTIES(${SOURCES} PROPERTIES COMPILE_FLAGS "-fPIC")
+SET_TARGET_PROPERTIES(mussa_core PROPERTIES COMPILE_FLAGS "-fPIC")
+
ADD_LIBRARY( mussa_core STATIC ${SOURCES} )
ADD_SUBDIRECTORY( test )