diff options
author | Chris Robinson <[email protected]> | 2017-08-30 16:33:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-30 16:33:44 -0700 |
commit | 67f183f2065d8d8de3c345f88bc5dd76232ba1a0 (patch) | |
tree | 5baa74881679675bb2f5ef211c7df35d75d7219f /native-tools/CMakeLists.txt | |
parent | 0408f9b7dfcca59488484b4d7326ffdb32fbfb84 (diff) |
Avoid using wmain on Windows
Diffstat (limited to 'native-tools/CMakeLists.txt')
-rw-r--r-- | native-tools/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/native-tools/CMakeLists.txt b/native-tools/CMakeLists.txt index 3c66c8bc..c3055f8d 100644 --- a/native-tools/CMakeLists.txt +++ b/native-tools/CMakeLists.txt @@ -4,6 +4,10 @@ project(native-tools) include(CheckLibraryExists) +if(WIN32) + add_definitions("-D_WIN32") +endif(WIN32) + check_library_exists(m pow "" HAVE_LIBM) add_executable(bin2h bin2h.c) @@ -20,6 +24,3 @@ set_target_properties(bsincgen PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CM if(HAVE_LIBM) target_link_libraries(bsincgen m) endif(HAVE_LIBM) -if(WIN32 AND CMAKE_COMPILER_IS_GNUCC) - set_property(TARGET bsincgen APPEND_STRING PROPERTY LINK_FLAGS " -municode") -endif(WIN32 AND CMAKE_COMPILER_IS_GNUCC) |