Replies: 1 comment
-
if(MSVC) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
if (${CMAKE_CXX_COMPILER_ID} matches GNU)
message(STATUS "Using GCC - GNU C/C++ Compiler")
set(CMAKE_CXX_FLAGS "-g -Wall")
elseif(${CMAKE_CXX_COMPILER_ID} matches CLANG)
message(STATUS "Using Clang++/LLVM.")
set(CMAKE_CXX_FLAGS "-g -Wall")
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
message("64 bits build.")
else()
message("32 bits build.")
endif()
if(UNIX)
set(CMAKE_EXECUTABLE_SUFFIX ".bin")
endif()
add_custom_target(run
COMMAND ClassicOS
DEPENDS ClassicOS
WORKING_DIRECTORY ${CMAKE_PROJECT_DIR}
)
IF(MINGW)
target_link_options(ClassicOS PRIVATE
-static-libgcc
-static-libstdc++
-Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive
)
ENDIF()
Beta Was this translation helpful? Give feedback.
All reactions