Skip to content

Commit 1be4889

Browse files
committed
Persitently update platform information
1 parent b582cd8 commit 1be4889

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

CMakeLists.txt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,7 @@ if(NOT GIT_EXECUTABLE)
2020
" - Call cmake with -DGIT_EXECUTABLE=<full path to git>")
2121
endif()
2222

23-
if(NOT(DEFINED IS_WIN32 OR DEFINED IS_LINUX OR DEFINED IS_APPLE))
24-
if(WIN32)
25-
set(IS_WIN32 TRUE)
26-
set(USE_3RDPARTY_DEFAULT ON)
27-
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
28-
set(IS_APPLE TRUE)
29-
set(USE_3RDPARTY_DEFAULT ON)
30-
else()
31-
set(IS_LINUX TRUE)
32-
set(USE_3RDPARTY_DEFAULT OFF)
33-
endif()
34-
endif()
35-
23+
include(cmake/wxl_platforms.cmake)
3624
# Special source directories
3725
set(LAUNCHER_CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/cmake)
3826
include(${LAUNCHER_CMAKE_SOURCE_DIR}/setup_submodules.cmake)
@@ -50,9 +38,6 @@ if(USE_3RDPARTY)
5038
message("--- Using 3rd party source directory")
5139
execute_process(COMMAND ${CMAKE_COMMAND}
5240
-P ${3RD_PARTY_SOURCE_DIR}/build_deps.cmake
53-
-DIS_WIN32=${IS_WIN32}
54-
-DIS_LINUX=${IS_LINUX}
55-
-DIS_APPLE=${IS_APPLE}
5641
WORKING_DIRECTORY ${3RD_PARTY_SOURCE_DIR}
5742
RESULT_VARIABLE USE_3RDPARTY_BUILD
5843
)

0 commit comments

Comments
 (0)