@@ -88,7 +88,7 @@ set(PYBIND11_TEST_FILES
88
88
test_tagbased_polymorphic.cpp
89
89
test_union.cpp
90
90
#AV this fails with PGI test_virtual_functions.cpp
91
- )
91
+ )
92
92
93
93
# Invoking cmake with something like:
94
94
# cmake -DPYBIND11_TEST_OVERRIDE="test_callbacks.cpp;test_pickling.cpp" ..
@@ -265,15 +265,14 @@ foreach(target ${test_targets})
265
265
if (MSVC )
266
266
target_compile_options (${target} PRIVATE /utf-8 )
267
267
endif ()
268
- if (${CMAKE_CXX_COMPILER_ID} MATCHES "PGI" )
269
- if (WIN32 )
270
- target_compile_options (${target} PRIVATE -Wc,--pending_instantiations=0 )
268
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES "PGI" )
269
+ if (WIN32 )
270
+ target_compile_options (${target} PRIVATE -Wc,--pending_instantiations=0 )
271
271
else ()
272
- target_compile_options (${target} PRIVATE -Wc,--pending_instantiations=0 -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 )
272
+ target_compile_options (${target} PRIVATE -Wc,--pending_instantiations=0
273
+ -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 )
273
274
endif ()
274
275
endif ()
275
-
276
-
277
276
278
277
if (EIGEN3_FOUND )
279
278
target_link_libraries (${target} PRIVATE Eigen3::Eigen )
@@ -365,8 +364,8 @@ add_custom_command(
365
364
${CMAKE_CURRENT_BINARY_DIR} /sosize-$<TARGET_FILE_NAME:pybind11_tests>.txt )
366
365
367
366
# Test embedding the interpreter. Provides the `cpptest` target.
368
- if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "PGI" )
369
- add_subdirectory (test_embed )
367
+ if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "PGI" )
368
+ add_subdirectory (test_embed )
370
369
endif ()
371
370
# Test CMake build using functions and targets from subdirectory or installed location
372
371
add_subdirectory (test_cmake_build )
0 commit comments