Displaying 1 result from an estimated 1 matches for "position_independent_cod".
Did you mean:
position_independent_code
2016 Oct 20
2
Leveraging newer CMake features for Language standards
...pproiate compiler flags for
that language standard as known by CMake with be applied. You can set the
global default for this by defining in teh cop level CMakeLists.txt:
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
Unrelated but in a similar situation is the -fPIC flag. The
POSITION_INDEPENDENT_CODE target proeprty is available, which can be
initialized toa default value with:
set(CMAKE_POSITION_INDEPENDENT_CODE True)
What are peoples thoughts about reducing HandleLLVMOptions.cmake to factor
out and leverage options that CMake already knows about and knows how to
apply? I wanted to put a b...