Skip to content

Commit cfe677e

Browse files
Move variables before if/else (#3078)
1 parent d61029e commit cfe677e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

external/upstream/libint2/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ else()
6161
message(FATAL_ERROR "Suitable Libint2 could not be externally located as user insists")
6262
endif()
6363

64+
# stopgap to avert a report that static lib not working on Linux
65+
set(_build_shared_libs "ON")
66+
67+
# reportedly Debug takes forever to build on Mac
68+
set(_cmake_build_type "Release")
69+
6470
include(ExternalProject)
6571

6672
if(NOT ${BUILD_Libint2_GENERATOR})
@@ -77,14 +83,8 @@ else()
7783
if (MSVC)
7884
# Windows shared (dll) can't work
7985
set(_build_shared_libs "OFF")
80-
else()
81-
# stopgap to avert a report that static lib not working on Linux
82-
set(_build_shared_libs "ON")
8386
endif()
8487

85-
# reportedly Debug takes forever to build on Mac
86-
set(_cmake_build_type "Release")
87-
8888
ExternalProject_Add(libint2_external
8989
URL ${_url_l2_tarball}
9090
CMAKE_ARGS -GNinja

0 commit comments

Comments
 (0)