Commit fa7f96e1 authored by Samuel Debionne's avatar Samuel Debionne

Fix CMakeLists.txt, target_link_libraries(limacore...) was used before limacore definition.

parent a85cdd7f
......@@ -251,7 +251,6 @@ if(LIMA_ENABLE_CONFIG)
link_directories(${LIB_CONFIG_DIR})
set(extra_includes ${extra_includes} ${LIB_CONFIG_INCLUDE_DIR})
if (WIN32)
target_link_libraries(limacore shlwapi.lib)
add_definitions(-DLIBCONFIGXX_STATIC)
endif()
else()
......@@ -469,6 +468,11 @@ if(UNIX)
endif()
target_link_libraries(limacore processlib)
target_link_libraries(limacore ${saving_libs} ${extra_libs})
if (WIN32)
target_link_libraries(limacore shlwapi.lib)
endif()
if(WIN32)
target_compile_definitions(limacore PRIVATE LIMACORE_EXPORTS)
set_target_properties(limacore PROPERTIES PREFIX "lib")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment