Skip to content
Snippets Groups Projects
Commit 1893b05e authored by Martin Beseda's avatar Martin Beseda
Browse files

FIX: Trying to fix Exprtk compilation with MSCV

parent 24f6e85e
No related branches found
No related tags found
No related merge requests found
......@@ -46,5 +46,3 @@ ENDIF(EXPRTK_FOUND)
# Advanced options for not cluttering the cmake UIs:
MARK_AS_ADVANCED(EXPRTK_INCLUDE_DIR)
include_directories(${EXPRTK_INCLUDE_DIRS})
......@@ -54,10 +54,9 @@ if ("${BUILD_LIB}" STREQUAL "yes")
)
set(PREFIX "")
if(WIN32)
# if(WIN32)
# set(PREFIX "lib")
endif()
# endif()
if(WIN32 AND "${DEPENDENCIES_LINK_TYPE}" STREQUAL "shared")
message(FATAL_ERROR "Only static linking of external dependencies is supported for Windows systems now!")
elseif("${DEPENDENCIES_LINK_TYPE}" STREQUAL "static")
......@@ -75,5 +74,19 @@ if ("${BUILD_LIB}" STREQUAL "yes")
${Boost_INCLUDE_DIRS}
)
target_include_directories(
${PREFIX}exprtk
PRIVATE
${EXPRTK_INCLUDE_DIR}
)
target_compile_definitions(
${PREFIX}exprtk
PRIVATE
_ITERATOR_DEBUG_LEVEL=0
)
endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment