Skip to content

Commit 7dd1e62

Browse files
committed
Modified OpenMP and Qt5 compilation settings
1 parent b38e0ec commit 7dd1e62

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ after_build:
3636
- cd C:\Qt\latest\msvc2017_64\bin
3737
- windeployqt C:\projects\fish_deformation\unwind\unwind.exe
3838
- cd C:\projects\fish_deformation
39-
- 7z a unwind.zip .\unwind\*
39+
- 7z a unwind.zip unwind\
4040
artifacts:
4141
- path: unwind.zip

CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ project(fish_deformation)
33

44
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
55
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/src/utils/voroffset/cmake)
6-
set(CMAKE_PREFIX_PATH /usr/local/opt/qt/lib/cmake)
7-
6+
if (APPLE)
7+
set(CMAKE_PREFIX_PATH /usr/local/opt/qt/lib/cmake)
8+
endif ()
89

910

1011
#################################
@@ -110,8 +111,12 @@ file(GLOB CT_SRCS external/Segmentangling/ContourTree/*.cpp)
110111
set(CT_INCLUDE_DIRS external/Segmentangling/ContourTree)
111112
list(REMOVE_ITEM CT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/external/Segmentangling/ContourTree/main.cpp")
112113
add_library(contourtree STATIC ${CT_SRCS})
113-
# target_compile_options(contourtree PRIVATE "-fopenmp")
114-
target_link_libraries(contourtree Qt5::Core Qt5::Widgets spdlog)
114+
if (NOT APPLE)
115+
target_compile_options(contourtree PRIVATE "-fopenmp")
116+
target_link_libraries(contourtree Qt5::Core Qt5::Widgets -fopenmp spdlog)
117+
else ()
118+
target_link_libraries(contourtree Qt5::Core Qt5::Widgets spdlog)
119+
endif ()
115120
target_include_directories(contourtree PUBLIC ${CT_INCLUDE_DIRS})
116121
target_compile_definitions(contourtree PUBLIC CONTOUR_TREE_USE_SPDLOG)
117122

src/utils/bounding_cage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ class BoundingCage {
457457

458458
bool bump(double amount) {
459459
this->_origin += amount * this->normal();
460+
return true;
460461
}
461462

462463
/// Rotate the coordinate frame counter-clockwise about the normal axis

0 commit comments

Comments
 (0)