mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Demonstrate failure
This commit is contained in:
parent
444873d287
commit
b4986140d0
@ -13,11 +13,11 @@ if(PROJECT_IS_TOP_LEVEL)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
|
||||
endif()
|
||||
|
||||
find_package(SFML 3.0.0 EXACT CONFIG REQUIRED COMPONENTS Graphics Network Audio)
|
||||
find_package(SFML 3.0.0 EXACT CONFIG REQUIRED COMPONENTS Graphics Network)
|
||||
endif()
|
||||
|
||||
add_executable(test-sfml-install Install.cpp)
|
||||
target_link_libraries(test-sfml-install PRIVATE SFML::Graphics SFML::Network SFML::Audio)
|
||||
target_link_libraries(test-sfml-install PRIVATE SFML::Graphics SFML::Network)
|
||||
|
||||
if(SFML_USE_STATIC_STD_LIBS)
|
||||
set_target_properties(test-sfml-install PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
|
@ -7,9 +7,6 @@
|
||||
// Instantiate some types from each module to test for linker issues. This program is not meant be ran.
|
||||
int main()
|
||||
{
|
||||
// Audio
|
||||
[[maybe_unused]] const sf::SoundBufferRecorder soundBufferRecorder;
|
||||
|
||||
// Graphics
|
||||
[[maybe_unused]] const sf::Color color;
|
||||
[[maybe_unused]] const sf::IntRect rect;
|
||||
|
Loading…
Reference in New Issue
Block a user