From 7d789031d2f154e015f70a06eb2a1c01461e3cfc Mon Sep 17 00:00:00 2001 From: Qingnan Zhou Date: Sat, 22 Sep 2018 14:53:42 -0700 Subject: [PATCH] Minor update for Windows build. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3254b1..d56c829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,9 +18,9 @@ SET(SRC_FILES src/predicates.cpp src/make_tet_mesh.cpp) ADD_LIBRARY(quartet ${SRC_FILES}) -TARGET_LINK_LIBRARIES(quartet PRIVATE m) if(UNIX) - target_compile_options(quartet PRIVATE -fPIC) + TARGET_COMPILE_OPTIONS(quartet PRIVATE -fPIC) + TARGET_LINK_LIBRARIES(quartet PRIVATE m) endif(UNIX) ADD_EXECUTABLE(quartet_bin src/main.cpp)