Skip to content

Commit b077b31

Browse files
committed
Make sure option is set before any add_subdirectory calls
1 parent bae3aa5 commit b077b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ endif()
1515
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
1616
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
1717
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
18+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
1819

1920
add_subdirectory(game)
2021
add_subdirectory(utils)
@@ -24,7 +25,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
2425
option(WINFORMS_ENABLED "Enable native Windows interface" ON)
2526
set(COCOA_ENABLED OFF)
2627
set(NCURSES_ENABLED OFF)
27-
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
2828
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
2929
option(COCOA_ENABLED "Enable native MacOS interface" ON)
3030
option(NCURSES_ENABLED "Enable NCurses interface" ON)

0 commit comments

Comments
 (0)