mirror of
https://github.com/reactos/CMake.git
synced 2024-12-18 00:57:37 +00:00
Fix XL C++ compiler flags on Linux
In Platform/Linux.cmake we add GNU flags as default for the platform which breaks non-GNU compilers. Later we should refactor these flag files to put compiler-specific flags only in files loaded for each compiler. Until then this commit fixes the XL C++ compiler flags on Linux by erasing the GNU flags. See issue #9469.
This commit is contained in:
parent
932dac93b7
commit
b5e558e291
1
Modules/Platform/Linux-VisualAge-CXX.cmake
Normal file
1
Modules/Platform/Linux-VisualAge-CXX.cmake
Normal file
@ -0,0 +1 @@
|
||||
include(Platform/Linux-XL-CXX)
|
5
Modules/Platform/Linux-XL-CXX.cmake
Normal file
5
Modules/Platform/Linux-XL-CXX.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
|
Loading…
Reference in New Issue
Block a user