Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from frederikvannoote/develop
Browse files Browse the repository at this point in the history
Do not use BUILD_SHARED_LIBS as define in the code. When this define …
  • Loading branch information
frederikvannoote authored Feb 15, 2017
2 parents a0424d8 + c03df5c commit 3a30ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CommonConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (NOT DEFINED BUILD_SHARED_LIBS)
endif()
# When set to OFF, the library will be built as a static library
if (${BUILD_SHARED_LIBS})
add_definitions(-DBUILD_SHARED_LIBS)
add_definitions(-D${PROJECT_NAME}_BUILD_SHARED_LIBS)
endif()


Expand Down
2 changes: 1 addition & 1 deletion config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(@TARGET_INCLUDE_INSTALL_DIRS@)

if (@BUILD_SHARED_LIBS@)
add_definitions(-DBUILD_SHARED_LIBS)
add_definitions(-D@PROJECT_NAME@_BUILD_SHARED_LIBS)
endif()

0 comments on commit 3a30ac0

Please sign in to comment.