Skip to content

Commit

Permalink
find-external coin-utils: include coin subdir (#678)
Browse files Browse the repository at this point in the history
* find-external coin-utils: include coin subdir

to fix clp which tries to include "CoinPragma.hpp" from coin-utils
while coin-utils export include/ as includedir and provide
include/coin/CoinPragma.hpp

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
nim65s and pre-commit-ci[bot] authored Mar 25, 2024
1 parent f289252 commit c95a60e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions find-external/CoinUtils/FindCoinUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ mark_as_advanced(CoinUtils_INCLUDE_DIR CoinUtils_LIBRARY)
if(CoinUtils_FOUND AND NOT TARGET CoinUtils::CoinUtils)
add_library(CoinUtils::CoinUtils SHARED IMPORTED)
set_target_properties(
CoinUtils::CoinUtils PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${CoinUtils_INCLUDE_DIR}")
CoinUtils::CoinUtils
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${CoinUtils_INCLUDE_DIR};${CoinUtils_INCLUDE_DIR}/coin")
set_target_properties(
CoinUtils::CoinUtils PROPERTIES IMPORTED_LOCATION_RELEASE
"${CoinUtils_LIBRARY}")
Expand Down

0 comments on commit c95a60e

Please sign in to comment.