move "BUILDING" definition into the library's subdir
This commit is contained in:
@@ -30,8 +30,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
include(UseBackportedModules)
|
||||
include(DoxygenTargets)
|
||||
|
||||
add_definitions(-DWIIUSE_COMPILE_LIB)
|
||||
|
||||
if(BUILD_WIIUSE_SHARED_LIB)
|
||||
set(WIIUSE_LIB_TYPE SHARED)
|
||||
else()
|
||||
|
||||
@@ -34,6 +34,8 @@ if(MSVC)
|
||||
list(APPEND API wiiuse_msvcstdint.h)
|
||||
endif()
|
||||
|
||||
add_definitions(-DWIIUSE_COMPILE_LIB)
|
||||
|
||||
add_library(wiiuse ${WIIUSE_LIB_TYPE} ${SOURCES} ${API})
|
||||
|
||||
if(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user