Skip to content

Commit

Permalink
quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Mar 6, 2024
1 parent 9fffc3a commit 60f3dcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ThirdParty/sundials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ project(SUNDIALS C)

# Specify the location of additional CMAKE modules
set(CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/cmake
${PROJECT_SOURCE_DIR}/cmake/macros
${PROJECT_SOURCE_DIR}/cmake/tpl
"${PROJECT_SOURCE_DIR}/cmake"
"${PROJECT_SOURCE_DIR}/cmake/macros"
"${PROJECT_SOURCE_DIR}/cmake/tpl"
)

# MACRO definitions
Expand Down
10 changes: 5 additions & 5 deletions ThirdParty/sundials/cmake/tpl/SundialsKLU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ if(KLU_FOUND AND (NOT KLU_WORKS))
# Do any checks which don't require compilation first.

# Create the KLU_TEST directory
set(KLU_TEST_DIR ${PROJECT_BINARY_DIR}/KLU_TEST)
set(KLU_TEST_DIR "${PROJECT_BINARY_DIR}/KLU_TEST")
file(MAKE_DIRECTORY ${KLU_TEST_DIR})

# Create a CMakeLists.txt file
file(WRITE ${KLU_TEST_DIR}/CMakeLists.txt
file(WRITE "${KLU_TEST_DIR}/CMakeLists.txt"
"CMAKE_MINIMUM_REQUIRED(VERSION 3.1.3)\n"
"PROJECT(ltest C)\n"
"SET(CMAKE_VERBOSE_MAKEFILE ON)\n"
Expand All @@ -77,7 +77,7 @@ if(KLU_FOUND AND (NOT KLU_WORKS))
"TARGET_LINK_LIBRARIES(ltest ${KLU_LIBRARIES})\n")

# Create a C source file which calls a KLU function
file(WRITE ${KLU_TEST_DIR}/ltest.c
file(WRITE "${KLU_TEST_DIR}/ltest.c"
"\#include \"klu.h\"\n"
"int main(){\n"
"klu_common Common;\n"
Expand All @@ -87,10 +87,10 @@ if(KLU_FOUND AND (NOT KLU_WORKS))

# To ensure we do not use stuff from the previous attempts,
# we must remove the CMakeFiles directory.
file(REMOVE_RECURSE ${KLU_TEST_DIR}/CMakeFiles)
file(REMOVE_RECURSE "${KLU_TEST_DIR}/CMakeFiles")

# Attempt to build and link the "ltest" executable
try_compile(COMPILE_OK ${KLU_TEST_DIR} ${KLU_TEST_DIR} ltest
try_compile(COMPILE_OK "${KLU_TEST_DIR}" "${KLU_TEST_DIR}" ltest
OUTPUT_VARIABLE COMPILE_OUTPUT)

# Process test result
Expand Down

0 comments on commit 60f3dcb

Please sign in to comment.