Skip to content

Commit 5d74bca

Browse files
authored
Replace WINDOWS with WIN32 in CMakeLists.txt (#1059)
Fixes Windows specific code in CMake files by using the proper platform variable for Windows. This is a slightly modified version of @cedricp changes proposed in #1040.
1 parent 56cba29 commit 5d74bca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

App/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ***** END LICENSE BLOCK *****
1919

2020
set(Natron_SOURCES NatronApp_main.cpp)
21-
if(WINDOWS)
21+
if(WIN32)
2222
list(APPEND Natron_SOURCES ../Natron.rc)
2323
endif()
2424
add_executable(Natron ${Natron_SOURCES})

Renderer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ***** END LICENSE BLOCK *****
1919

2020
set(NatronRenderer_SOURCES NatronRenderer_main.cpp)
21-
if(WINDOWS)
21+
if(WIN32)
2222
list(APPEND NatronRenderer_SOURCES ../Natron.rc)
2323
endif()
2424
add_executable(NatronRenderer ${NatronRenderer_SOURCES})

libs/gflags/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set(gflags_SOURCES
3030
src/gflags_completions.cc
3131
src/gflags_reporting.cc
3232
)
33-
if(WINDOWS)
33+
if(WIN32)
3434
set(gflags_HEADERS ${gflags_HEADERS} src/windows_port.h)
3535
set(gflags_SOURCES ${gflags_SOURCES} src/windows_port.cc)
3636
endif()

0 commit comments

Comments
 (0)