Skip to content

Commit

Permalink
[#28] Linux specific CMake fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Apr 5, 2020
1 parent 3b7c863 commit 4b1f5c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ option(ENABLE_EXAMPLES "Enable Examples" 1)
find_package(Doxygen)
option(ENABLE_DOCS "Build API documentation" ${DOXYGEN_FOUND})

# cpprest dependency
find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
if(APPLE)
Expand All @@ -79,6 +80,7 @@ if(OPENSSL_FOUND)
endif(OPENSSL_FOUND)
if(UNIX AND NOT APPLE)
set(cpprestsdk_DIR /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/)
find_package(Boost COMPONENTS system REQUIRED)
endif(UNIX AND NOT APPLE)
find_package(cpprestsdk REQUIRED NAMES cpprestsdk cpprest)

Expand Down
3 changes: 1 addition & 2 deletions generator/src/rest/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ add_dependencies(cpprest-api-test
)
target_link_libraries(cpprest-api-test PUBLIC
cpprest-api
)
target_link_libraries(cpprest-api-test PRIVATE
cpprestsdk::cpprest
${Boost_SYSTEM_LIBRARY}
)

#----------------------------------------------------------------------------
Expand Down

0 comments on commit 4b1f5c7

Please sign in to comment.