Skip to content

Commit

Permalink
[CMake] Always use lib as library directory in builtin CFITSIO prefix
Browse files Browse the repository at this point in the history
Like this, we make sure the static library is where we expect it to be:
`CFITSIO-prefix/lib/libcfitsio.a`, and not for example in the `lib64`
directory.

Inspired by this forum post:
https://root-forum.cern.ch/t/6-32-02-will-not-build-from-source-with-option-dbuiltin-cfitsio/60270
  • Loading branch information
guitargeek committed Jul 19, 2024
1 parent 3b510f3 commit b2c0161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtins/cfitsio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ExternalProject_Add(
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_FLAGS=${CFITSIO_C_FLAGS}
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DCMAKE_INSTALL_LIBDIR=<INSTALL_DIR>/lib
-DBUILD_SHARED_LIBS=OFF
-DUSE_CURL=OFF
-DZLIB_FOUND=TRUE
Expand Down

0 comments on commit b2c0161

Please sign in to comment.