move compile defs to cxx and c flags
This commit is contained in:
parent
c544cb4307
commit
a8a087b099
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue