summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2011-12-17 15:31:36 +0100
committerMaarten ter Huurne <maarten@treewalker.org>2011-12-17 15:32:41 +0100
commit74d552f3cae97d7beb643f52e378a4258dca0772 (patch)
tree42c85f592ca51a436b0fd994254bc20b7fda69c2
parent5cbc31b052e13857e74baf3523048ad2b5c6c6c6 (diff)
Removed debug prints.
-rw-r--r--CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78a2789404..cb1f17d2b3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,13 +144,10 @@ if (APPLE)
set(TARGET_FLAGS "${TARGET_FLAGS} -Xarch_i386 -march=prescott")
set(TARGET_FLAGS "${TARGET_FLAGS} -Xarch_x86_64 -mssse3")
set(TARGET_FLAGS "${TARGET_FLAGS} -Xarch_x86_64 -march=core2")
- message("target flags: ${TARGET_FLAGS}")
# Target flags apply to both C and C++ compilation.
+ # CMake passes these to the compiler on the link command line as well.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_FLAGS}")
- # TODO: It seems that CMake passes compile flags to the linker anyway.
- #set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TARGET_FLAGS}")
- message("C++ flags: ${CMAKE_CXX_FLAGS}")
# Linker flags.
# Drop unreachable code and data.