gcc - How to prefix CMake Compiler? -
i want prefix compiler utility script, instead of example g++-4.7 main.cpp
,kinst-ompp g++-4.7 main.cpp
invoked.
i tried doing in cmakelists.txt, i'm getting "not found" error:
set(cmake_cxx_compiler "${ompp_cxx} ${cmake_cxx_compiler}") set(cmake_c_compiler "${ompp_cc} ${cmake_c_compiler}")
how configure using cmake?
i got work setting compiler prefix , passing real compiler name first argument. ugly, know.
set(cmake_cxx_compiler "${ompp_cxx}") set(cmake_cxx_flags_release "${cmake_cxx_compiler} ${commoncxxflags} ${commonreleaseflags}")
Comments
Post a Comment