summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-21 20:15:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-21 20:15:49 (GMT)
commita8a087b099b2e3dfbba9c8a726208c4e88e98be7 (patch)
tree1fa759eb5b48f4ca942fef9c143a30a521d052fa /Source/cmTryCompileCommand.cxx
parentc544cb43078a92c7c04ef4ebccb36310765b6487 (diff)
downloadCMake-a8a087b099b2e3dfbba9c8a726208c4e88e98be7.zip
CMake-a8a087b099b2e3dfbba9c8a726208c4e88e98be7.tar.gz
CMake-a8a087b099b2e3dfbba9c8a726208c4e88e98be7.tar.bz2
move compile defs to cxx and c flags
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index 44752eb..04a7a4d 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -153,7 +153,8 @@ int cmTryCompileCommand::CoreTryCompileCode(
return -1;
}
- fprintf(fout, "ADD_DEFINITIONS(${COMPILE_DEFINITIONS})\n");
+ fprintf(fout, "SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${COMPILE_DEFINITIONS})\n");
+ fprintf(fout, "SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS})\n");
fprintf(fout, "INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n");
fprintf(fout, "LINK_DIRECTORIES(${LINK_DIRECTORIES})\n");
// handle any compile flags we need to pass on