diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 15:15:49 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 15:15:49 -0500 |
commit | a8a087b099b2e3dfbba9c8a726208c4e88e98be7 (patch) | |
tree | 1fa759eb5b48f4ca942fef9c143a30a521d052fa /Source/cmTryCompileCommand.cxx | |
parent | c544cb43078a92c7c04ef4ebccb36310765b6487 (diff) | |
download | cmake-a8a087b099b2e3dfbba9c8a726208c4e88e98be7.tar.gz |
move compile defs to cxx and c flags
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 44752eb8d6..04a7a4d2de 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 |