mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
Clean up CMake files (#3417)
* Clean up CMake files * bump CMake minimum required version to 3.7 to utilize [`VERSION_GREATER_EQUAL`](https://cmake.org/cmake/help/v3.7/release/3.7.html#index-0-command:if) * improve catch-dependency * fix conditionals * use early return * properly use CMake commands * Apply suggestions from code review Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ SET_SOURCE_FILES_PROPERTIES(GraphMolCSharp.i PROPERTIES CPLUSPLUS ON )
|
||||
|
||||
# Setup a few variables for environment-specific things
|
||||
if(WIN32)
|
||||
ADD_DEFINITIONS("/W3 /wd4716 /bigobj")
|
||||
ADD_COMPILE_OPTIONS(/W3 /wd4716 /bigobj)
|
||||
SET(PATH_SEP ";")
|
||||
SET(COPY_CMD xcopy ${COPY_SOURCE} ${COPY_DEST} /Y /I)
|
||||
else()
|
||||
@@ -29,7 +29,7 @@ if(APPLE)
|
||||
SET(CMAKE_SIZEOF_VOID_P 4)
|
||||
endif(APPLE)
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES 4)
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
SET(CMAKE_SWIG_FLAGS -namespace "GraphMolWrap")
|
||||
else()
|
||||
if (WIN32)
|
||||
|
||||
@@ -54,7 +54,7 @@ FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src/org/RDKit COPY_DEST)
|
||||
|
||||
# Setup a few variables for environment-specific things
|
||||
if(WIN32)
|
||||
ADD_DEFINITIONS("/W3 /wd4716 /wd4101 /bigobj")
|
||||
ADD_COMPILE_OPTIONS(/W3 /wd4716 /wd4101 /bigobj)
|
||||
SET(PATH_SEP ";")
|
||||
SET(COPY_CMD xcopy ${COPY_SOURCE} ${COPY_DEST} /Y /I)
|
||||
else()
|
||||
@@ -67,7 +67,7 @@ if(APPLE)
|
||||
SET(CMAKE_SIZEOF_VOID_P 4)
|
||||
endif(APPLE)
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P MATCHES 4)
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
SET(CMAKE_SWIG_FLAGS -package "org.RDKit")
|
||||
else()
|
||||
if (WIN32)
|
||||
|
||||
Reference in New Issue
Block a user