mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Use CXX flags not C flags in ChemDraw cmake config (#9108)
* Use CXX flags not C flags * Explicitly turn off -Werror and see if that works * Back out removing -Werror, remove unused clang -Wno-X flags
This commit is contained in:
committed by
greg landrum
parent
848c970e9f
commit
a61f1725cf
4
External/ChemDraw/CMakeLists.txt
vendored
4
External/ChemDraw/CMakeLists.txt
vendored
@@ -119,11 +119,11 @@ if(RDK_BUILD_CHEMDRAW_SUPPORT)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-comment -Wno-parentheses -Wno-logical-op-parentheses -Wno-pointer-bool-conversion -Wno-unused-value -Wno-unsequenced -Wno-constant-logical-operand")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment -Wno-parentheses -Wno-logical-op-parentheses -Wno-pointer-bool-conversion -Wno-unused-value -Wno-unsequenced -Wno-constant-logical-operand")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=0 -Wformat=0 -Wno-format-security")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat-overflow=0 -Wformat=0 -Wno-format-security")
|
||||
endif()
|
||||
|
||||
include_directories(chemdraw)
|
||||
|
||||
Reference in New Issue
Block a user