diff options
author | Melven Roehrig-Zoellner <Melven.Roehrig-Zoellner@DLR.de> | 2017-11-20 20:06:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-27 19:41:54 (GMT) |
commit | e04f1d1b47f395cd702574041aa17e52e71499d8 (patch) | |
tree | f545f6160ca637341a272d8ddf5de8661f6ea75d /Modules/CMakeFindCodeBlocks.cmake | |
parent | 85ae0ba796c26b9ba2f7025e267d3f438db388c6 (diff) | |
download | CMake-e04f1d1b47f395cd702574041aa17e52e71499d8.zip CMake-e04f1d1b47f395cd702574041aa17e52e71499d8.tar.gz CMake-e04f1d1b47f395cd702574041aa17e52e71499d8.tar.bz2 |
CodeBlocks: add option for the CB compiler ID
CodeBlocks uses his own compiler ID string which may differ from
CMAKE_<LANG>_COMPILER_ID. In particular CodeBlocks supports a large
number of different compiler configurations (with different IDs)
This commit adds a cache variable "CMAKE_CODEBLOCKS_COMPILER_ID",
so the user might adjust it when needed.
Diffstat (limited to 'Modules/CMakeFindCodeBlocks.cmake')
-rw-r--r-- | Modules/CMakeFindCodeBlocks.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeFindCodeBlocks.cmake b/Modules/CMakeFindCodeBlocks.cmake index b76e5c5..13bceb1 100644 --- a/Modules/CMakeFindCodeBlocks.cmake +++ b/Modules/CMakeFindCodeBlocks.cmake @@ -28,3 +28,6 @@ endif() # This variable is used by the CodeBlocks generator and appended to the make invocation commands. set(CMAKE_CODEBLOCKS_MAKE_ARGUMENTS "${_CMAKE_CODEBLOCKS_INITIAL_MAKE_ARGS}" CACHE STRING "Additional command line arguments when CodeBlocks invokes make. Enter e.g. -j<some_number> to get parallel builds") + +# This variable is used by the CodeBlocks generator and allows the user to overwrite the autodetected CodeBlocks compiler id +set(CMAKE_CODEBLOCKS_COMPILER_ID "" CACHE STRING "Id string of the compiler for the CodeBlocks IDE. Automatically detected when left empty") |