Set shared lib option in cmake cache

This commit is contained in:
Jack Andersen 2017-07-02 18:48:19 -10:00
parent b975184530
commit 12646ae23d
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ project(urde)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(BUILD_SHARED_LIBS OFF)
set(BUILD_STATIC_LIBS ON)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Force shared libs off" FORCE)
set(BUILD_STATIC_LIBS ON CACHE BOOL "Force static libs on" FORCE)
if(MSVC)
if(${CMAKE_GENERATOR} MATCHES "Visual Studio*")