Skip to content

Commit

Permalink
Link to math only on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuahin committed Sep 12, 2023
1 parent 43e4405 commit dd55b5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SRC_engines/src/solver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ target_link_options(epanet2
">"
)

target_link_libraries(epanet2
PRIVATE
m
)
if(UNIX)
target_link_libraries(epanet2
PRIVATE
m
)

target_include_directories(epanet2
PUBLIC
Expand Down

0 comments on commit dd55b5d

Please sign in to comment.