Skip to content

Commit b3b0e12

Browse files
committed
chore: cmake-format
1 parent 07c0cef commit b3b0e12

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/CMakeLists.txt

+11-8
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ project(
88
VERSION ${PACKAGE_VERSION}
99
LANGUAGES C CXX Fortran)
1010

11-
if (WIN32)
12-
# if building on windows we need to make sure the symbols are exported
13-
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
14-
# required to build the .dll on windows
15-
set (BUILD_SHARED_LIBS TRUE)
16-
endif ()
11+
if(WIN32)
12+
# if building on windows we need to make sure the symbols are exported
13+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
14+
# required to build the .dll on windows
15+
set(BUILD_SHARED_LIBS TRUE)
16+
endif()
1717

1818
include(FortranCInterface)
1919
FortranCInterface_VERIFY(CXX QUIET)
@@ -103,8 +103,11 @@ install(FILES "${CMAKE_BINARY_DIR}/modules/ftorch_test_utils.mod"
103103
# Build integration tests
104104
if(CMAKE_BUILD_TESTS)
105105

106-
set (Python_FIND_VIRTUALENV FIRST)
107-
find_package (Python COMPONENTS Interpreter REQUIRED)
106+
set(Python_FIND_VIRTUALENV FIRST) # cmake-lint: disable=C0103
107+
find_package(
108+
Python
109+
COMPONENTS Interpreter
110+
REQUIRED)
108111

109112
file(MAKE_DIRECTORY test/examples)
110113
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/CMakeLists.txt

0 commit comments

Comments
 (0)