Skip to content

Commit

Permalink
fixed problem with non-lowercase include-dirs in CMake export
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Jan 27, 2024
1 parent 0c314a5 commit ff988fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/jkqtplotter_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ include(GNUInstallDirs)



function(jkqtplotter_installlibrary_new lib_name libIncludeSubdir libSrcDir)
function(jkqtplotter_installlibrary_new lib_name libBasename libSrcDir)
string(TOLOWER "${libBasename}" libIncludeSubdir)

# export targets (including headers!)
install(TARGETS ${lib_name}
Expand All @@ -78,7 +79,6 @@ function(jkqtplotter_installlibrary_new lib_name libIncludeSubdir libSrcDir)
)
# generate ...Config.cmake
set(JKQTP_CURRENT_TARGET_FILENAME "${lib_name}Targets.cmake")
set(libBasename "${libIncludeSubdir}")
configure_file(${libSrcDir}/LibTarget.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/${lib_name}Config.cmake" @ONLY)
# install export files
install(EXPORT ${lib_name}_TARGETS
Expand Down

0 comments on commit ff988fa

Please sign in to comment.