diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 21:03:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 21:03:07 (GMT) |
commit | 145390fcc9f6d59435d03b6217e1adc4f8fc93d0 (patch) | |
tree | 6d66dd64a63b6c5ff62ac690076b453b7b62dff1 /Source/cmTryCompileCommand.cxx | |
parent | 77888e67f8987458f70ed53bdd55bc578ea8acbc (diff) | |
download | CMake-145390fcc9f6d59435d03b6217e1adc4f8fc93d0.zip CMake-145390fcc9f6d59435d03b6217e1adc4f8fc93d0.tar.gz CMake-145390fcc9f6d59435d03b6217e1adc4f8fc93d0.tar.bz2 |
fix flag setting
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 04a7a4d..fe7cca1 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -153,8 +153,8 @@ int cmTryCompileCommand::CoreTryCompileCode( return -1; } - 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, "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 @@ -232,6 +232,7 @@ static void cmTryCompileCommandNotUsed(bool){} void cmTryCompileCommand::CleanupFiles(const char* binDir) { + return; if ( !binDir ) { return; |