Fix cmake issue with msvc
The cmake call to set_properties is fully overriding a property, in this case the COMPILE_DEFINITIONS and we were losing an eigen definition needed. The correct way to do this is to use the cmake function target_compile_definitionsrelease/4.3a0
parent
5851656544
commit
b103fea40c
|
@ -177,8 +177,8 @@ target_include_directories(gtsam SYSTEM BEFORE PUBLIC
|
|||
if(WIN32) # Add 'lib' prefix to static library to avoid filename collision with shared library
|
||||
if (NOT GTSAM_SHARED_LIB)
|
||||
set_target_properties(gtsam PROPERTIES
|
||||
PREFIX "lib"
|
||||
COMPILE_DEFINITIONS GTSAM_IMPORT_STATIC)
|
||||
PREFIX "lib")
|
||||
target_compile_definitions(gtsam PRIVATE GTSAM_IMPORT_STATIC)
|
||||
else()
|
||||
set_target_properties(gtsam PROPERTIES
|
||||
PREFIX ""
|
||||
|
|
Loading…
Reference in New Issue