Skip to content
Snippets Groups Projects
Commit 7115af78 authored by Stephen Hurd's avatar Stephen Hurd
Browse files

We can't add definitions to a target until there's a target

parent 307857f2
No related branches found
No related tags found
No related merge requests found
...@@ -14,12 +14,12 @@ if(WIN32) ...@@ -14,12 +14,12 @@ if(WIN32)
list(APPEND SOURCE comio_win32.c) list(APPEND SOURCE comio_win32.c)
else() else()
list(APPEND SOURCE comio_nix.c) list(APPEND SOURCE comio_nix.c)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(comio PRIVATE SPEED_MACROS_ONLY)
endif()
endif() endif()
add_library(comio OBJECT ${SOURCE}) add_library(comio OBJECT ${SOURCE})
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(comio PRIVATE SPEED_MACROS_ONLY)
endif()
target_include_directories(comio PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(comio PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(comio xpdev) target_link_libraries(comio xpdev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment