Skip to content

Commit 2252f7f

Browse files
authored
Merge pull request #2 from thomaskf/master
Fix the window compilation issue
2 parents afd70a6 + f6ce95a commit 2252f7f

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

utils/CMakeLists.txt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,19 @@ target_link_libraries(utils lbfgsb sprng)
2828
##################################################################
2929
option(BUILD_DECENTTREE "build decenttree" ON)
3030

31-
#if(BUILD_DECENTTREE)
32-
# add_executable(decentTree
33-
# decenttree.cpp
34-
# starttree.cpp bionj.cpp bionj2.cpp
35-
# gzstream.cpp progress.cpp operatingsystem.cpp)
31+
if(BUILD_DECENTTREE)
32+
add_executable(decentTree
33+
decenttree.cpp
34+
starttree.cpp bionj.cpp bionj2.cpp
35+
gzstream.cpp progress.cpp operatingsystem.cpp)
36+
endif(BUILD_DECENTTREE)
3637

38+
if(ZLIB_FOUND)
39+
target_link_libraries(decentTree ${ZLIB_LIBRARIES})
40+
else(ZLIB_FOUND)
41+
target_link_libraries(decentTree zlibstatic)
42+
endif(ZLIB_FOUND)
3743

3844
if(CLANG AND WIN32)
39-
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib/libiomp5md.dll)
40-
41-
if(ZLIB_FOUND)
42-
target_link_libraries(decentTree ${ZLIB_LIBRARIES})
43-
else(ZLIB_FOUND)
44-
target_link_libraries(decentTree zlibstatic)
45-
endif(ZLIB_FOUND)
46-
47-
if(CLANG AND WIN32)
48-
if (BINARY32)
49-
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib32/libiomp5md.dll)
50-
else()
51-
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib/libiomp5md.dll)
52-
endif()
53-
endif()
45+
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib/libiomp5md.dll)
5446
endif()

0 commit comments

Comments
 (0)