diff options
author | click <none@none> | 2010-08-28 18:49:17 +0200 |
---|---|---|
committer | click <none@none> | 2010-08-28 18:49:17 +0200 |
commit | dcaeceaf6b3e4cfe16d5c5fbad7473dfb14ba4dd (patch) | |
tree | 90f05c04805999930494e76e6e286865a8c1a96a /cmake/AddCompilerFlag.cmake | |
parent | 8f97ba844089dfbf312babed6dc4dca24269ebc8 (diff) |
Buildsystem: Change over to a little more flexible method of using the CMake buildsystem (partially WIP) - REQUIRES RERUNNING CMAKE!
For finding out the "standard" parameters examine the cmake/options.cmake file and adjacent files for your platform/compiler.
For platform settings -> cmake/platform/*/settings.cmake
For compiler settings -> cmake/compiler/*/settings.cmake
Some more testing and changes IS required, but I don't have OSX/XCode to kill off the main issues
--HG--
branch : trunk
rename : cmake/FindPlatform.cmake => cmake/macros/CheckPlatform.cmake
rename : cmake/FindACE.cmake => cmake/macros/FindACE.cmake
rename : cmake/FindMySQL.cmake => cmake/macros/FindMySQL.cmake
rename : cmake/FindOpenSSL.cmake => cmake/macros/FindOpenSSL.cmake
rename : cmake/FindPCHSupport.cmake => cmake/macros/FindPCHSupport.cmake
rename : cmake/FindReadline.cmake => cmake/macros/FindReadline.cmake
rename : cmake/cmake_uninstall.cmake.in => cmake_uninstall.cmake.in
Diffstat (limited to 'cmake/AddCompilerFlag.cmake')
-rw-r--r-- | cmake/AddCompilerFlag.cmake | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmake/AddCompilerFlag.cmake b/cmake/AddCompilerFlag.cmake deleted file mode 100644 index 5310b5982bc..00000000000 --- a/cmake/AddCompilerFlag.cmake +++ /dev/null @@ -1,12 +0,0 @@ -include (CheckCXXCompilerFlag) -macro(AddCompilerFlag _flag) - string(REGEX REPLACE "[/:= ]" "_" _flag_esc "${_flag}") - check_cxx_compiler_flag("${_flag}" check_compiler_flag_${_flag_esc}) - if(check_compiler_flag_${_flag_esc}) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_flag}") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_flag}") - endif(check_compiler_flag_${_flag_esc}) - if(${ARGC} EQUAL 2) - set(${ARGV1} "${check_compiler_flag_${_flag_esc}}") - endif(${ARGC} EQUAL 2) -endmacro(AddCompilerFlag) |