Skip to content

Commit

Permalink
resurrect Windows workaround for library linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
gentryx committed Mar 5, 2017
1 parent 6845163 commit 625d405
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -174,7 +174,13 @@ if(WITH_VISIT)
list(APPEND INSTALL_INCLUDE_DIRECTORIES ${VisIt_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
endif()

set(LOCAL_LIBGEODECOMP_LINK_LIB geodecomp)
if(WIN32)
set(LOCAL_LIBGEODECOMP_LINK_LIB local_libgeodecomp_link_lib)
add_library(local_libgeodecomp_lib IMPORTED)
set_property(TARGET local_libgeodecomp_lib PROPERTY IMPORTED_LOCATION ${LIBGEODECOMP_BINARY_DIR}/src/${CMAKE_BUILD_TYPE}/geodecomp.dll)
else()
set(LOCAL_LIBGEODECOMP_LINK_LIB geodecomp)
endif()

include_directories(SYSTEM ${INSTALL_INCLUDE_DIRECTORIES})
include_directories(${BUILD_INCLUDE_DIRECTORIES})
Expand Down

0 comments on commit 625d405

Please sign in to comment.