Skip to content

Commit

Permalink
Fixed for shared library mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvovch committed Jul 18, 2019
1 parent 9a3761f commit 9caec62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

# Properties->C/C++->General->Additional Include Directories
include_directories ("${PROJECT_SOURCE_DIR}/include"
Expand Down Expand Up @@ -154,7 +154,7 @@ target_include_directories(ThermalFIST PUBLIC
"${PROJECT_BINARY_DIR}/include"
"${PROJECT_SOURCE_DIR}/thirdparty/MersenneTwister")

install (TARGETS ThermalFIST
ARCHIVE DESTINATION ${PROJECT_BINARY_DIR}/lib)
#install (TARGETS ThermalFIST
# ARCHIVE DESTINATION ${PROJECT_BINARY_DIR}/lib)


5 changes: 3 additions & 2 deletions thirdparty/Minuit2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

# Minuit2 headers
file (GLOB HEADERS_MINUIT
Expand All @@ -18,7 +19,7 @@ target_include_directories(Minuit2 PUBLIC "Minuit/include")

set_property(TARGET Minuit2 PROPERTY FOLDER "libraries")

install (TARGETS Minuit2
ARCHIVE DESTINATION ${PROJECT_BINARY_DIR}/lib)
#install (TARGETS Minuit2
# ARCHIVE DESTINATION ${PROJECT_BINARY_DIR}/lib)


0 comments on commit 9caec62

Please sign in to comment.