Skip to content

Commit

Permalink
Adjust linking targets, Boost is monolithic, jsoncpp and gtest were r…
Browse files Browse the repository at this point in the history
…enamed (casing)

I'm not sure about some of the boost libs... they seem to be header only, not sure if I need something specific
  • Loading branch information
jmarrec committed Dec 17, 2019
1 parent e8a6b96 commit e3f6d9a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ProjectMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ macro(CREATE_TEST_TARGETS BASE_NAME SRC DEPENDENCIES)
endif()

target_link_libraries(${BASE_NAME}_tests
CONAN_PKG::gtest
CONAN_PKG::GTest
${ALL_DEPENDENCIES}
)

Expand Down
9 changes: 5 additions & 4 deletions src/generateiddfactory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ add_executable(${target_name}
set_target_properties(${target_name} PROPERTIES COMPILE_DEFINITIONS OPENSTUDIO_DIRECT_INCLUDE)

target_link_libraries(${target_name}
CONAN_PKG::boost_filesystem
CONAN_PKG::boost_regex
CONAN_PKG::boost_program_options
CONAN_PKG::boost_crc
CONAN_PKG::Boost
#CONAN_PKG::boost_filesystem
#CONAN_PKG::boost_regex
#CONAN_PKG::boost_program_options
#CONAN_PKG::boost_crc
)

# generate the IddFactory files
Expand Down
3 changes: 2 additions & 1 deletion src/install_utility/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
add_executable(install_utility main.cpp)

target_link_libraries(install_utility
CONAN_PKG::boost_filesystem
CONAN_PKG::Boost
# CONAN_PKG::boost_filesystem
)

if( WIN32 )
Expand Down
23 changes: 12 additions & 11 deletions src/utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,20 +402,21 @@ add_subdirectory(pch)

set(${target_name}_depends
CONAN_PKG::sqlite3
CONAN_PKG::jsoncpp
CONAN_PKG::JsonCpp
CONAN_PKG::ZLIB
CONAN_PKG::fmt
CONAN_PKG::pugixml
CONAN_PKG::boost_filesystem
CONAN_PKG::boost_crc
CONAN_PKG::boost_regex
CONAN_PKG::boost_algorithm
CONAN_PKG::boost_uuid
CONAN_PKG::boost_log
CONAN_PKG::boost_program_options
CONAN_PKG::boost_numeric_ublas
CONAN_PKG::boost_functional
CONAN_PKG::boost_geometry
CONAN_PKG::Boost
#CONAN_PKG::boost_filesystem
#CONAN_PKG::boost_crc
#CONAN_PKG::boost_regex
#CONAN_PKG::boost_algorithm
#CONAN_PKG::boost_uuid
#CONAN_PKG::boost_log
#CONAN_PKG::boost_program_options
#CONAN_PKG::boost_numeric_ublas
#CONAN_PKG::boost_functional
#CONAN_PKG::boost_geometry
CONAN_PKG::cpprestsdk
CONAN_PKG::OpenSSL
CONAN_PKG::geographiclib
Expand Down

0 comments on commit e3f6d9a

Please sign in to comment.