Skip to content

Commit

Permalink
Add quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 28, 2024
1 parent 67fe00e commit 710d17f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ set(CMAKE_Fortran_MODULE_DIRECTORY ${LIBSUPERMESH_BINARY_DIR}/include)
include_directories(${LIBSUPERMESH_SOURCE_DIR}/include)
include_directories(${LIBSUPERMESH_BINARY_DIR}/include)
include_directories(${LIBSUPERMESH_BINARY_DIR}/include_local)
if(${SKBUILD} STREQUAL 2)
if("${SKBUILD}" STREQUAL 2)
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
else()
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
Expand Down Expand Up @@ -193,7 +193,7 @@ if(spatialindexheaders)
endif()

file(GLOB source_files ${LIBSUPERMESH_SOURCE_DIR}/src/*.F90 ${LIBSUPERMESH_SOURCE_DIR}/src/*.c ${LIBSUPERMESH_SOURCE_DIR}/src/*.cpp)
if(${SKBUILD} STREQUAL 2)
if("${SKBUILD}" STREQUAL 2)
python_add_library(supermesh MODULE WITH_SOABI ${source_files})
else()
add_library(supermesh ${source_files})
Expand All @@ -203,7 +203,7 @@ target_link_libraries(supermesh PUBLIC ${link_libraries})
#~ set_target_properties(supermesh PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
set_target_properties(supermesh PROPERTIES INSTALL_RPATH "$ORIGIN/../Rtree.libs")
set_target_properties(supermesh PROPERTIES LINK_FLAGS "${MPI_Fortran_LINK_FLAGS}")
if(${SKBUILD} STREQUAL 2)
if("${SKBUILD}" STREQUAL 2)
# use, i.e. don't skip the full RPATH for the build tree
set(CMAKE_SKIP_BUILD_RPATH FALSE)

Expand All @@ -219,7 +219,7 @@ if(${SKBUILD} STREQUAL 2)
endif()

# Only build tests if not built by scikit-build-core
if(NOT ${SKBUILD} STREQUAL 2)
if(NOT "${SKBUILD}" STREQUAL 2)
set(test_main ${LIBSUPERMESH_SOURCE_DIR}/src/tests/test_main.cpp)
file(GLOB unittest_files ${LIBSUPERMESH_SOURCE_DIR}/src/tests/*.F90)
set(unittests "")
Expand Down Expand Up @@ -278,7 +278,7 @@ if(ENABLE_DOCS)
FORCE_PDF EXCLUDE_FROM_ALL BIBFILES doc/bibliography.bib)
endif()

if(${SKBUILD} STREQUAL 2)
if("${SKBUILD}" STREQUAL 2)
install(TARGETS supermesh DESTINATION supermesh)
install(DIRECTORY ${LIBSUPERMESH_BINARY_DIR}/include DESTINATION supermesh)
else()
Expand Down

0 comments on commit 710d17f

Please sign in to comment.