move compile defs to cxx and c flags

This commit is contained in:
Bill Hoffman 2002-11-21 15:15:49 -05:00
parent c544cb4307
commit a8a087b099

View File

@ -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