From 710d17f5adeb425a1576a5e3ad77fff2e54ae251 Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Mon, 28 Oct 2024 22:54:11 +0000 Subject: [PATCH] Add quotes --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 845fd99..e9e560a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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}) @@ -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) @@ -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 "") @@ -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()