made SLIC3R_STATIC a -D option instead of environment var

This commit is contained in:
Joseph Lenox 2018-05-10 18:48:04 -05:00 committed by Joseph Lenox
parent 375663c381
commit 1f82f74799

View File

@ -173,15 +173,15 @@ add_library(bthread SHARED IMPORTED)
set_target_properties(bthread PROPERTIES IMPORTED_LOCATION ${bthread_l})
include_directories(${Boost_INCLUDE_DIRS})
if(DEFINED ENV{SLIC3R_STATIC})
if(${SLIC3R_STATIC})
set(wxWidgets_USE_STATIC ON)
ELSE(DEFINED ENV{SLIC3R_STATIC})
else(${SLIC3R_STATIC})
set(wxWidgets_USE_STATIC OFF)
ENDIF(DEFINED ENV{SLIC3R_STATIC})
endif(${SLIC3R_STATIC})
set(wxWidgets_USE_UNICODE ON)
find_package(wxWidgets COMPONENTS base aui core html)
find_package(wxWidgets COMPONENTS net gl html aui core base)
IF(CMAKE_HOST_UNIX)
#set(Boost_LIBRARIES bsystem bthread bfilesystem)